package QuestionNum_10_1_1;

public class Manager extends Employee {
    private double comm;

    public Manager() {

    }

    public Manager(String name, int idNum, double salary, double comm) {
        super(name, idNum, salary);
        this.comm = comm;
    }

    public double getComm() {
        return comm;
    }

    public void setComm(double comm) {
        this.comm = comm;
    }

    void work(){
        System.out.println("姓名:"+getName()+"编号:"+getIdNum()+"工资:"+getSalary()+"奖金:"+getComm());
    }
}
